<?php

namespace App\Services;

use App\Models\PayMch;

class PayMchService extends ServiceBase
{
    // 校验当前是否开放登录入口
    public function getByName($name, $return_obj = false)
    {
        $mch = PayMch::where('name', $name)->first();
        if ($return_obj) {
            return $mch;
        } else {
            return $mch->toArray();
        }
    }
}
